package com.coding.pojo;

/**
 * @author Administrator
 * @auther wangchenghao
 * @date 2020/8/9
 **/
public class UserHistory {
    private int userHistoryId;
    private int userId;
    private String userName;
    private int sourceId;
    private String sourceKind;
    private String historyTime;
    private String imageUrl;
    private MainPlace mainPlace;
    private Poem poem;
    private Post post;

    public UserHistory() {
    }

    public UserHistory(int userHistoryId, int userId, String userName, int sourceId, String sourceKind, String historyTime, String imageUrl) {
        this.userHistoryId = userHistoryId;
        this.userId = userId;
        this.userName = userName;
        this.sourceId = sourceId;
        this.sourceKind = sourceKind;
        this.historyTime = historyTime;
        this.imageUrl = imageUrl;
    }

    public UserHistory(int userHistoryId, int userId, String userName, int sourceId, String sourceKind, String historyTime, String imageUrl, MainPlace mainPlace, Poem poem, Post post) {
        this.userHistoryId = userHistoryId;
        this.userId = userId;
        this.userName = userName;
        this.sourceId = sourceId;
        this.sourceKind = sourceKind;
        this.historyTime = historyTime;
        this.imageUrl = imageUrl;
        this.mainPlace = mainPlace;
        this.poem = poem;
        this.post = post;
    }

    @Override
    public String toString() {
        return "UserHistory{" +
                "userHistoryId=" + userHistoryId +
                ", userId=" + userId +
                ", userName=" + userName +
                ", sourceId=" + sourceId +
                ", sourceKind='" + sourceKind + '\'' +
                ", historyTime='" + historyTime + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", mainPlace=" + mainPlace +
                ", poem=" + poem +
                ", post=" + post +
                '}';
    }

    public int getUserHistoryId() {
        return userHistoryId;
    }

    public void setUserHistoryId(int userHistoryId) {
        this.userHistoryId = userHistoryId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getSourceId() {
        return sourceId;
    }

    public void setSourceId(int sourceId) {
        this.sourceId = sourceId;
    }

    public String getSourceKind() {
        return sourceKind;
    }

    public void setSourceKind(String sourceKind) {
        this.sourceKind = sourceKind;
    }

    public String getHistoryTime() {
        return historyTime;
    }

    public void setHistoryTime(String historyTime) {
        this.historyTime = historyTime;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public MainPlace getMainPlace() {
        return mainPlace;
    }

    public void setMainPlace(MainPlace mainPlace) {
        this.mainPlace = mainPlace;
    }

    public Poem getPoem() {
        return poem;
    }

    public void setPoem(Poem poem) {
        this.poem = poem;
    }

    public Post getPost() {
        return post;
    }

    public void setPost(Post post) {
        this.post = post;
    }
}
